<html>
    <head>
        <title>类的定义</title>

        <script type="text/javascript">

            //1. 定义类
            class Point{

            }

            function init(){
                //2. 输出类Point的类型
                alert("[typeof Point] = " + typeof Point);
                //3. 输出Point的构造函数
                alert("[Point === Point.prototype.constructor] = " + (Point === Point.prototype.constructor));
            }
        </script>
    </head>
    <body onload="init()"></body>
</html>